package com.wx.chapter17;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/8/16 - 11:46
 */
public class CpuNum {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        int cpuNum = runtime.availableProcessors();
        System.out.println("当前有cpu 个数=" + cpuNum);
    }
}
